package com.i2works.smartluolong.web.service.flow;

import com.i2works.smartluolong.utils.basecommon.BaseCommonService;
import com.i2works.smartluolong.utils.exception.ServiceException;
import com.i2works.smartluolong.web.entity.flow.FlowTemplateDO;
import com.i2works.smartluolong.web.entity.flow.FlowTemplateQuery;

import java.util.List;

/**
 * 工作流模板业务层接口
 *
 * @author Liu Yutao <koal@vip.qq.com>
 * @date 2018/3/28 11:07
 */

public interface IFlowTemplateService extends BaseCommonService<FlowTemplateQuery, FlowTemplateDO> {

    /**
     * 根据工作流ID删除
     *
     * @param flowId 工作流ID
     */
    void deleteByFlowId(Integer flowId) throws ServiceException;

    /**
     * 批量保存
     *
     * @param list     保存的对象集合
     * @param userName 操作人员名称
     */
    void saveBatch(List<FlowTemplateDO> list, String userName) throws ServiceException;
}
